package org.ysh.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.ysh.core.annotation.ResourceEx;

/**
 * 个人空间
 */
@Controller
@RequestMapping("/userSpace")
public class UserSpaceController extends BaseController{

    @ResourceEx(name = "申请事项",code = "userSpace.apply",description = "个人空间/申请事项",icon = "fa fa-user",type = 0,sort = 0,permission = "userSpace:apply",parentCode = "userSpace")
    @RequestMapping("/apply")
    public String apply(){
        return "userSpace/apply";
    }


    @ResourceEx(name = "待办事项",code = "userSpace.todo",description = "个人空间/待办事项",icon = "fa fa-user",type = 0,sort = 1,permission = "userSpace:todo",parentCode = "userSpace")
    @RequestMapping("/todo")
    public String todo() {
        return "userSpace/todo";
    }

    @ResourceEx(name = "已办事项",code = "userSpace.done",description = "个人空间/已办事项",icon = "fa fa-user",type = 0,sort = 2,permission = "userSpace:done",parentCode = "userSpace")
    @RequestMapping("/done")
    public String done() {
        return "userSpace/done";
    }

}
